package com.hongxin.nw.netty.down;

import com.hongxin.nw.netty.model.Transfer;
import com.hongxin.nw.netty.utils.FieldPack;
import com.hongxin.nw.netty.values.StaticValue;
import com.hongxin.nw.netty.values.TypeIdentif;
import lombok.extern.slf4j.Slf4j;

/**
 * @remark 心跳
 * @author: GuoXiaolin
 * @date 2019/6/25 11:53
 * @Version 1.0
 * @Descibe
 */
@Slf4j
public class HeartBeatReq implements IChannelRequest{

    @Override
    public String doPacking(Transfer transfer)  throws Exception{

//        APCI ac = new APCI();
//        ac = ac.setIdentifyStart(TypeIdentif.IDENTIFY_START.getInt())
//                .setApduLength(0)
//                .setContarea(TypeIdentif.FORMAT_U.getStr(), StaticValue.U_TEST_OK);
//        return ac.getHexData();
        int length = 0;
        return FieldPack.packAPCI(length,TypeIdentif.FORMAT_U.getStr(), StaticValue.U_TEST_OK);

    }
}
